﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Literal2.Text = "你好，当前时间是：" + DateTime.Now.ToLocalTime().ToString();
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            Literal1.Text = "你好，当前时间是：" + DateTime.Now.ToLocalTime().ToString();
            Literal3.Text = "请确认你填写的信息:";
            Literal4.Text = "姓名：  " + TextBox1.Text;
            Literal5.Text = "年龄：  " + TextBox2.Text;
            Literal6.Text = "爱好：  " + TextBox3.Text;
        }
    }
}